<extend name="Index/index"/>
<block name="main">
		<title>发表评论</title>

		<link href="__PUBLIC__/static/css/personal.css" rel="stylesheet" type="text/css">
		<link href="__PUBLIC__/static/css/appstyle.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="__PUBLIC__/static/js/jquery-1.7.2.min.js"></script>
	</head>

	<body>
		<!--头 -->
		<include file="Public/top" />
            <include file="Public/daohang" />
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">
					<div class="user-comment">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">发表评论</strong> / <small>Make&nbsp;Comments</small></div>
						</div>
						<hr/>
						<div class="comment-main">
							<foreach name="list" item="vo">
						<form action="<{:U('docomment')}>" method="post" name="comment" id="comment">
							<div class="comment-list">
								<div class="item-pic">
									<a href="#" class="J_MakePoint">
										<img src="__UPLOAD__/<{$vo.img}>" class="itempic" >
									</a>
								</div>

								<div class="item-title">

									<div class="item-name">
										<a href="#" title="<{$vo.gname}>">
											<p class="item-basic-info"><{$vo.gname}></p>
										</a>
									</div>
									<div class="item-info">
										<div class="info-little">
											<span>颜色：洛阳牡丹</span>
											<span>包装：裸装</span>
										</div>
										<div class="item-price">
											价格：<strong><{$vo.price}>元</strong>
										</div>										
									</div>
								</div>
								<div class="clear"></div>
								<div class="item-comment">
									<textarea placeholder="请写下对宝贝的感受吧，对他人帮助很大哦！" name="content"></textarea>
								</div>
								<div class="filePic">
									<input type="file" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" accept="image/*" >
									<span>晒照片(0/5)</span>
									<img src="__PUBLIC__/static/images/image.jpg" alt="">
								</div>
								<div class="item-opinion">
									<li><i class="op1"></i>好评</li>
									<li><i class="op2"></i>中评</li>
									<li><i class="op3"></i>差评</li>
								</div>
								<input type="hidden" name="gid" value="<{$vo.gid}>">
							</div>
													
								<div class="info-btn">
									<input type="submit" class="am-btn am-btn-danger" value="发表评论">
								</div>	
								</form>						
							</foreach>
					<script type="text/javascript">
						$(document).ready(function() {
							$(".comment-list .item-opinion li").click(function() {	
								$(this).prevAll().children('i').removeClass("active");
								$(this).nextAll().children('i').removeClass("active");
								$(this).children('i').addClass("active");
								
							});
				     })
					</script>					
					
												
							
						</div>

					</div>

				</div>
			</div>

			<include file="Public/menu" />
		</div>

</block>